package com.domain;

/**
 * @author Xiao
 * @date 2021/7/4
 */
/*
    定义一个手机类：品牌、价格；打电话，发短信
 */
public class Phone01 {
    public String brand;
    public int price;
    public void call(String name){
        System.out.println("给" + name + "打电话。");
    }
    public void sendMessage() {
        System.out.println("群发短信。");
    }
    public void show (String brand, int price) {
        System.out.println("brand：" + brand);
        System.out.println("price：" + price);
    }

}
